package com.qfedu.dao;

import com.qfedu.pojo.Account;
import java.math.BigDecimal;
import java.sql.Connection;


public interface AccountDao {

    public Account queryAccountByPhone(String phone);

    public Account queryAccountByIdcode(String idcode);

    public int saveAccount(Account account);


/*public interface AccountDao {*/
    Account findAccountByIdCode(String cardnumber);

    int outMoney(Account source, BigDecimal money, Connection connection);

    int inMoney(Account target, BigDecimal money, Connection connection);

    Account password(String idcode,String password);

    Account forgetCheck(String name,String phone,String idcode);

    Account queryIdcodeByPhone(String phone);

    void updateMoney(Connection connection ,String cardnumber, BigDecimal mon);

    /*---------------------------------------------------------------------*/
    Account findAccountIdcode(String s);


    void outMoney(Account source, int money, Connection connection);


    Account findMoney();

    Account find1(Account account2);

    Account findAccountPhone(String s);

    void inMoney2(Account target, double money, Connection connection);

    Account findPassword();

    int updateMoney(Account account ,BigDecimal add);
}
